package mark.tom.friend.bean.bo;

import mark.tom.friend.base.BeanConvert;
import mark.tom.friend.bean.db.ConfigRecordDO;
import mark.tom.friend.bean.vo.ConfigRecordVO;

public class ConfigRecordBO extends ConfigRecordVO {

    private Long id;
    // 内容
    private String content;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public final static class ConfigRecordDOConvert extends BeanConvert<ConfigRecordBO, ConfigRecordDO> {
        @Override public ConfigRecordBO convert(ConfigRecordDO configRecordDO) {
            ConfigRecordBO configRecordBO = new ConfigRecordBO();
            configRecordBO.setId(configRecordDO.getId());
            configRecordBO.setContent(configRecordDO.getContent());
            configRecordBO.setTitle(configRecordDO.getTitle());
            return configRecordBO;
        }
    }
}
